package org.lwd.datalink.utils;

/**
 * Generic interface for callbacks
 *
 * @Author: weidong.lin
 * @Date: create in 2024/3/6 14:35
 */
public interface Callback<V> {
    /**
     * Invoked upon completion of the operation.
     *
     * @param error  the error that caused the operation to fail, or null if no error occurred
     * @param result the return value, or null if the operation failed
     */
    void onCompletion(Throwable error, V result);
}
